<?php use_stylesheet('teams.css') ?>

<h1><?php echo $pronos_team->getName() ?> (<?php echo $pronos_team->getPronosGroup()->getName() ?>)</h1>
<div id="teams">
<table class="teams">
    <?php $matches = $pronos_team->getP1Matchs();
			
		foreach ($matches as $i => $pronos_match): 
			$result = $pronos_match->getP1Result();	?>
	    <tr class="<?php echo fmod($i, 2) ? 'even' : 'odd' ?>">
				<!--td ><?php echo $pronos_match->getId() ?></td-->
				<td class="position" align="center"><?php echo $pronos_match->getFDate('d/m H:i') ?></td>
			    <td><img src="/pronos/images/teams/<?php echo strtolower($pronos_match->getTeam1()->getCode()) ?>.gif" /></td>
				<td align="right"><?php echo $pronos_match->getTeam1()->getName() ?></td>
				<td align="right"><?php echo $result->getScore1() ?></td>
				<td align="center">&nbsp;-&nbsp;</td>
				<td align="right"><?php echo $result->getScore2() ?></td>
				<td align="left"><?php echo $pronos_match->getTeam2()->getName() ?></td>
				<td><img src="/pronos/images/teams/<?php echo strtolower($pronos_match->getTeam2()->getCode()) ?>.gif" /></td>
		</tr>
	<?php endforeach ?>
</table>
</div>
